package com.erp.quertz.emailQuertz;

import com.erp.erp_servers.Email.Impl.EmailServiceImpl;

public class get {
    private volatile static get g = null;
    // 私有化构造方法
    private get() {
    }
    public synchronized int get(EmailServiceImpl email){
        int x=0;
        try {
            x = email.upDateEmail();
        } catch (Exception e) {
            e.printStackTrace();
            System.out.println("获取邮件元数据中断");
        }
        return x;
    }
    public static get getget() {
        if (g == null) {
            synchronized (get.class) {
                if (g== null) {
                    g = new get();
                }
            }

        }
        return g;
    }
}
